<?php

namespace app\common\service\auth;

use app\model\Agent;
use app\model\AgentChannel;
use app\model\MobileUser;

class AuthUnitService extends AuthApiService implements AuthInterface
{


    public function attempt($params)
    {
        $this->user = MobileUser::query()
            ->where('id', 1)
            ->find();

        $this->agentChannel = AgentChannel::query()
            ->where('id', env('channel_id','241'))
            ->find();

        return Agent::query()->where('id',$this->agentChannel->agent_id)->find();

    }

}